/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jse;

/**
 *
 * @author WangShuai
 */
public class LoopVar {

    public static void main(String[] args) {
        int j = 0;
        while(j<5) {
            boolean a = false;
            for (int i = 0; i < 5; i++) {
                if (i == 2) {
                    a= true;
                    System.out.println(a);
                    
                    break;
                }
            }
            j++;
        }

    }
}
